Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

Setting up Unifi Talk without Touch device

I recently came across the issue that I wanted to setup Unifi Talk but I didn't want to buy a talk device just to set it up (this was the recommended way from Unifi)

For Unifi Talk 4.2.4 its a little more difficult but still possible:

  1. Go to your Unifi Talk setup page and press right mouse button -> Inspect
  2. Go to Network tab in Dev Tools
  3. Search for index-
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@THE-AHMEXD
THE-AHMEXD / ban-list.js
Created October 23, 2026 22:45
WhatsApp Bot — Group Ban List Manager Plugin
const { bot } = require('../lib/')
let banList = {};
// 🔹 BAN USER (unchanged logic)
bot(
{
pattern: 'ban ?(.*)',
fromMe: true,
onlyGroup: true,
@brandondube
brandondube / batch_dot.py
Created December 29, 2021 15:34
dot product batch with einsum
from concurrent.futures import ThreadPoolExecutor, wait
def slices_for_split(N, m):
"""Split an array of length N into m chunks, with the final chunk being a bit smaller if need be.
Does not actually split, returns a list of slice objects for reuse.
"""
# this code is largely adapted from the numpy source code
Neach_section, extras = divmod(N, m)
Neach_section, extras
{
"name": "base-setup",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installOhMyZsh": true,
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/sshd:1": {}
The goal of Node was event driven HTTP servers.
5:04 https://youtu.be/M3BM9TB-8yA?t=304
1 Regret: Not sticking with Promises.
* I added promises to Node in June 2009 but foolishly removed them in February 2010.
* Promises are the necessary abstraction for async/await.
* It's possible unified usage of promises in Node would have sped the delivery of the eventual standartization and async/await.
* Today Node's many async APIs are aging baldly due to this.
6:02 https://youtu.be/M3BM9TB-8yA?t=362
@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active October 25, 2026 06:09
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
@jacquesbh
jacquesbh / sylius-security-advisories-2026-10-22-ai-remediation-prompt.en.md
Created October 23, 2026 09:59
Sylius security advisories - 22th oct. 2026 - prompt for remediation

You are the security maintainer of this Sylius project. Investigate and correct the six security advisories listed below.

This is a self-contained assignment. Do not assume a particular directory structure, hosting provider, development environment, deployment process, or set of commands. The project may use an old Sylius release, custom bundles, plugins, themes, multiple applications, or modified upstream code.

Adapt every correction to the application you actually inspect. Preserve its architecture, conventions, supported PHP version, and legitimate business behavior.

1. Verify the official advisories first

Read these URLs before you decide which corrections to apply: